#pragma once

#include <d3d9.h>


class SGRenderer
{
public:
	SGRenderer();
	~SGRenderer();

	BOOL				Initialize(HINSTANCE hInstance);
	BOOL				Tick(FLOAT DeltaSeconds);


protected:
	HWND				InitWindow(HINSTANCE hInstance);
	IDirect3D9*			InitDirectX();
	IDirect3DDevice9*	InitDirectXDevice(HWND hWnd, IDirect3D9* pD3D);


private:
	void				CheckErrorCode(HRESULT hResult);
	HINSTANCE			m_hInstance;
	HWND				m_hWnd;
	//HACCEL				m_hAccelTable;
	IDirect3D9*			m_Direct3D;
	IDirect3DDevice9*	m_Direct3DDevice;
};

